helloApp.config(function($stateProvider, $urlRouterProvider) {

	$stateProvider
	    .state('root.anon.login', {
			url: "/login",
			views: {
				content: {
					templateUrl : "/app/public/login/view/login.html",
					controller: 'LoginCtrl'
				}
			}
		});
});

helloApp.controller('LoginCtrl', function ($scope, $http, $state, $q, $rootScope, Auth, $cookieStore) {

    $scope.formLogin = {
        rememberMe : false
    };

	$scope.login = function () {

        Auth.login({
            username: this.formLogin.login,
            password: this.formLogin.password,
            rememberme: this.formLogin.rememberMe
        });
	};
});